<div class="ingredients view">
<h2><?php  __('Ingredient');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ingredient['Ingredient']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ingredient['Ingredient']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Description'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ingredient['Ingredient']['description']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ingredient['Ingredient']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ingredient['Ingredient']['modified']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id Deleted'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ingredient['Ingredient']['id_deleted']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Ingredient', true), array('action' => 'edit', $ingredient['Ingredient']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Ingredient', true), array('action' => 'delete', $ingredient['Ingredient']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ingredient['Ingredient']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Ingredients', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ingredient', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Order Line Item Details', true), array('controller' => 'order_line_item_details', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Order Line Item Detail', true), array('controller' => 'order_line_item_details', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menu Items', true), array('controller' => 'menu_items', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu Item', true), array('controller' => 'menu_items', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Order Line Item Details');?></h3>
	<?php if (!empty($ingredient['OrderLineItemDetail'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Order Line Item Id'); ?></th>
		<th><?php __('Detail Type'); ?></th>
		<th><?php __('Ingredient Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ingredient['OrderLineItemDetail'] as $orderLineItemDetail):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $orderLineItemDetail['id'];?></td>
			<td><?php echo $orderLineItemDetail['order_line_item_id'];?></td>
			<td><?php echo $orderLineItemDetail['detail_type'];?></td>
			<td><?php echo $orderLineItemDetail['ingredient_id'];?></td>
			<td><?php echo $orderLineItemDetail['created'];?></td>
			<td><?php echo $orderLineItemDetail['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'order_line_item_details', 'action' => 'view', $orderLineItemDetail['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'order_line_item_details', 'action' => 'edit', $orderLineItemDetail['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'order_line_item_details', 'action' => 'delete', $orderLineItemDetail['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $orderLineItemDetail['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Order Line Item Detail', true), array('controller' => 'order_line_item_details', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Menu Items');?></h3>
	<?php if (!empty($ingredient['MenuItem'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Menu Item Group Id'); ?></th>
		<th><?php __('Item Name'); ?></th>
		<th><?php __('Item Desc'); ?></th>
		<th><?php __('Item Base Price'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Datetime'); ?></th>
		<th><?php __('Is Deleted'); ?></th>
		<th><?php __('Position In List'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ingredient['MenuItem'] as $menuItem):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $menuItem['id'];?></td>
			<td><?php echo $menuItem['menu_item_group_id'];?></td>
			<td><?php echo $menuItem['item_name'];?></td>
			<td><?php echo $menuItem['item_desc'];?></td>
			<td><?php echo $menuItem['item_base_price'];?></td>
			<td><?php echo $menuItem['created'];?></td>
			<td><?php echo $menuItem['datetime'];?></td>
			<td><?php echo $menuItem['is_deleted'];?></td>
			<td><?php echo $menuItem['position_in_list'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'menu_items', 'action' => 'view', $menuItem['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'menu_items', 'action' => 'edit', $menuItem['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'menu_items', 'action' => 'delete', $menuItem['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $menuItem['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Menu Item', true), array('controller' => 'menu_items', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
